style.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // OBS 친화 — 투명 배경 + 스크롤 숨김
  2. html, body {
  3. overflow: hidden;
  4. background: transparent;
  5. }
  6. .crew-widget {
  7. width: 100%;
  8. padding: 16px;
  9. font-family: 'Pretendard', sans-serif;
  10. background: transparent;
  11. // theme variant는 의미 없음 — 위젯 자체는 항상 투명 (OBS 캐스팅용)
  12. &--basic, &--dark, &--minimal {
  13. background: transparent;
  14. }
  15. // ── 위젯 제목 ──
  16. &__title {
  17. text-align: center;
  18. font-weight: 700;
  19. font-size: var(--crew-title-size, 18px);
  20. font-family: var(--crew-title-font, inherit);
  21. color: var(--crew-title-color, #fff);
  22. margin-bottom: 12px;
  23. }
  24. // ── 컬럼 헤더 ──
  25. &__columns {
  26. display: flex;
  27. align-items: center;
  28. gap: 8px;
  29. padding: 6px 12px;
  30. margin-bottom: 6px;
  31. border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  32. font-size: 0.6875rem;
  33. font-weight: 500;
  34. color: rgba(255, 255, 255, 0.5);
  35. letter-spacing: 0.03em;
  36. }
  37. &__col-rank { width: 28px; text-align: center; flex-shrink: 0; }
  38. &__col-icon { width: 28px; flex-shrink: 0; }
  39. &__col-name { flex: 1; min-width: 0; }
  40. &__col-rate { width: 50px; text-align: right; flex-shrink: 0; }
  41. &__col-amount { width: 70px; text-align: right; flex-shrink: 0; }
  42. &__col-count { width: 40px; text-align: right; flex-shrink: 0; }
  43. // ── 순위 리스트 ──
  44. &__list {
  45. display: flex;
  46. flex-direction: column;
  47. gap: 6px;
  48. }
  49. &__item {
  50. display: flex;
  51. align-items: center;
  52. gap: 8px;
  53. padding: 8px 12px;
  54. border-radius: 8px;
  55. background: rgba(255, 255, 255, 0.08);
  56. font-family: var(--row-font-family, inherit);
  57. font-size: var(--row-font-size, inherit);
  58. color: var(--row-font-color, inherit);
  59. transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  60. &--1 { background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05)); }
  61. &--2 { background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05)); }
  62. &--3 { background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05)); }
  63. }
  64. // ── 순위 배지 ──
  65. &__badge {
  66. display: inline-flex;
  67. align-items: center;
  68. justify-content: center;
  69. width: 28px;
  70. height: 28px;
  71. border-radius: 50%;
  72. font-size: 14px;
  73. font-weight: 800;
  74. flex-shrink: 0;
  75. &--1 { background: #FFD700; color: #000; }
  76. &--2 { background: #C0C0C0; color: #000; }
  77. &--3 { background: #CD7F32; color: #fff; }
  78. &--default { background: #555; color: #fff; }
  79. }
  80. // ── 크루원 아이콘 ──
  81. &__member-icon {
  82. width: 28px;
  83. height: 28px;
  84. border-radius: 50%;
  85. flex-shrink: 0;
  86. object-fit: cover;
  87. background: #444;
  88. border: 1px solid rgba(255, 255, 255, 0.15);
  89. &--empty {
  90. display: inline-block;
  91. }
  92. }
  93. // ── 이름 ──
  94. &__name {
  95. flex: 1;
  96. font-weight: 600;
  97. color: inherit;
  98. min-width: 0;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. white-space: nowrap;
  102. }
  103. // ── 기여도 ──
  104. &__rate {
  105. width: 50px;
  106. text-align: right;
  107. flex-shrink: 0;
  108. font-size: 0.85em;
  109. color: #A0D2FF;
  110. white-space: nowrap;
  111. }
  112. // ── 후원 금액 ──
  113. &__amount {
  114. width: 70px;
  115. text-align: right;
  116. flex-shrink: 0;
  117. font-weight: 700;
  118. color: #FF6B35;
  119. font-size: 0.85em;
  120. white-space: nowrap;
  121. }
  122. // ── 후원 건수 ──
  123. &__count {
  124. width: 40px;
  125. text-align: right;
  126. flex-shrink: 0;
  127. font-size: 0.8em;
  128. color: #aaa;
  129. white-space: nowrap;
  130. }
  131. }